package com.atguigu.common.constant;

public class ProductConstant {
    public enum AttrEnum{
        ATTR_TYPE_SALE(0,"sale"),
        ATTR_TYPE_BASE(1,"base");

        AttrEnum(int code,String msg){
            this.code = code;
            this.type = msg;
        }
        private int code;
        private String type;

        public int getCode(){
            return this.code;
        }

        public String getType(){
            return this.type;
        }
    }

    public enum StatusEnum{
        NEW_SPU(0,"新建"),
        UP_SPU(1,"上架"),
        DOWN_SPU(2,"下架");

        StatusEnum(int code,String value){
            this.code = code;
            this.value = value;
        }
        private int code;
        private String value;

        public int getCode(){
            return this.code;
        }

        public String getValue(){
            return this.value;
        }


    }
}
